#pragma once
#include "DrawAttribute.h"
#include "drawmarginapp.h"
#include <QDir>
#include <QFileInfoList>

class DrawMarginApp;
class handleLine
{
public:
	handleLine(void);
	void initialize();
	int execute();
	void exit();
	IplImage* loadImage(QString filename);
	void setInputPath(const  QString filename);
	void setOutPutPath(const QString filepath);
	QFileInfo getFileNameList(int i);
	inline int getFileNameSize(){ return _filenameList.size();}
	void setDrawMarginApp(DrawMarginApp* app){_app = app;}
	inline DrawMarginApp* getDrawMarginApp(){ return _app;}
	bool isDoing(){return doing;}
	QString getOutputPath() {return _outputPath;}
	~handleLine(void);

private:
	int _imageWidth,_imageHeight;
	DrawMarginApp* _app;
	QFileInfoList _filenameList;
	bool doing;
	HANDLE _handle;
	DWORD _handleId;

	QString _outputPath;
};

